public class Test {
   // 由于JNI的命名，无法找到类
   public static class Jingyang {
      // 区域温度
      public native String getAreaTemperature(String ip, int port, String user, String pwd, int channel, int areaOperType);
  
      // 引用库
      static { System.loadLibrary("jingyang"); }  
   }

   public static void main(String[] args) {
      System.out.println("1");
      Jingyang t = new Jingyang();
      System.out.println("2");
      // 调用
      String jsonStr = t.getAreaTemperature("192.168.10.77", 30001, "admin", "admin", 1, 3);
      System.out.println (jsonStr);
   }
}